package com.woniu.controller;

import com.woniu.entity.PersonImage;
import com.woniu.service.PersonImageService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (PersonImage)表控制层
 *
 * @author makejava
 * @since 2020-03-24 19:04:32
 */
@RestController
@RequestMapping("personImage")
public class PersonImageController {
    /**
     * 服务对象
     */
    @Resource
    private PersonImageService personImageService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public PersonImage selectOne(Integer id) {
        return this.personImageService.queryById(id);
    }

}